import { http } from "@/utils/http";
//引入类型约束
import type { profileResponse, profileRequest } from "@/types/profile";

/**
 * 用户信息部分接口
*/


//获取当前用户的信息
export const reqUserInfo = () => {
    return http<profileResponse>({
        url:"/member/profile",
        method:"GET"
    })
}

//修改用户信息
export const reqUpdateUserInfo = (userInfo:profileRequest) => {
    return http<profileResponse>({
        url:"/member/profile",
        method:"PUT",
        data:userInfo
    })
}